package widget

import (
	"time"
)

type JWT struct {
	Ip      string
	Id      string
	Timeout time.Duration
	iat     time.Time
	Exp     int64
}

func (this *JWT) Create() (token string, exp int64) {

	//if b, err := json.Marshal(this); err != nil {
	//	service.Cache.New().Set("")
	//	return string(b), ""
	//}
	//
	return
}

func (this *JWT) Refresh() {

}
